package org.tea.inventory.domain.tea;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.io.Serializable;
import java.util.Date;

/**
 * 供应商类型对象 supplier_type
 * 
 * @author dongxb
 * @date 2025-04-14
 */
@ApiModel(value = "供应商类型对象")
@Data
@NoArgsConstructor
public class SupplierType implements Serializable
{
    private static final long serialVersionUID = 1L;

    /** 主键自增 */
    private Long id;

    /** 类型id */
    @ApiModelProperty(value = "类型id")
    private String typeId;

    /** 供应商类别名称 */
    @ApiModelProperty(value = "供应商类别名称")
    private String typeName;

    /** 添加时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "添加时间")
    private Date addTime;

    /** 添加人 */
    @ApiModelProperty(value = "添加人")
    private String addUser;

    /** 修改时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "修改时间")
    private Date modifyTime;

    /** 修改人 */
    @ApiModelProperty(value = "修改人")
    private String modifyUser;

    /** 删除标记0正常1删除 */
    private String delFlag;

    /** 公司id */
    @ApiModelProperty(value = "公司id")
    private String companyId;

    /** 分组id */
    @ApiModelProperty(value = "分组id")
    private String typeGroupId;

    /** 分组名称 */
    @ApiModelProperty(value = "分组名称")
    private String typeGroupName;

    /** 供应商大类id */
    @ApiModelProperty(value = "供应商大类id")
    private String supplierClassId;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public void setTypeId(String typeId) 
    {
        this.typeId = typeId;
    }

    public String getTypeId() 
    {
        return typeId;
    }

    public void setTypeName(String typeName) 
    {
        this.typeName = typeName;
    }

    public String getTypeName() 
    {
        return typeName;
    }

    public void setAddTime(Date addTime) 
    {
        this.addTime = addTime;
    }

    public Date getAddTime() 
    {
        return addTime;
    }

    public void setAddUser(String addUser) 
    {
        this.addUser = addUser;
    }

    public String getAddUser() 
    {
        return addUser;
    }

    public void setModifyTime(Date modifyTime) 
    {
        this.modifyTime = modifyTime;
    }

    public Date getModifyTime() 
    {
        return modifyTime;
    }

    public void setModifyUser(String modifyUser) 
    {
        this.modifyUser = modifyUser;
    }

    public String getModifyUser() 
    {
        return modifyUser;
    }

    public void setDelFlag(String delFlag) 
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag() 
    {
        return delFlag;
    }

    public void setCompanyId(String companyId) 
    {
        this.companyId = companyId;
    }

    public String getCompanyId() 
    {
        return companyId;
    }

    public void setTypeGroupId(String typeGroupId) 
    {
        this.typeGroupId = typeGroupId;
    }

    public String getTypeGroupId() 
    {
        return typeGroupId;
    }

    public void setTypeGroupName(String typeGroupName) 
    {
        this.typeGroupName = typeGroupName;
    }

    public String getTypeGroupName() 
    {
        return typeGroupName;
    }

    public void setSupplierClassId(String supplierClassId) 
    {
        this.supplierClassId = supplierClassId;
    }

    public String getSupplierClassId() 
    {
        return supplierClassId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("typeId", getTypeId())
            .append("typeName", getTypeName())
            .append("addTime", getAddTime())
            .append("addUser", getAddUser())
            .append("modifyTime", getModifyTime())
            .append("modifyUser", getModifyUser())
            .append("delFlag", getDelFlag())
            .append("companyId", getCompanyId())
            .append("typeGroupId", getTypeGroupId())
            .append("typeGroupName", getTypeGroupName())
            .append("supplierClassId", getSupplierClassId())
            .toString();
    }
}
